<template>
    <div class="nav">
        <div class="logo_box">
            <img src="@/assets/images/logo.png" alt="vue-logo">
            <div class="user_out">
                <span>{{$store.state.userName}}</span>
                <button>退出</button>
            </div>
        </div>
        <div class="list_a">
            <router-link to="/home">首页</router-link>
            <router-link to="/user">用户</router-link>
        </div>
    </div>
</template>

<script>
export default {
    name:"Nav"
}
</script>
